package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/4/4 14:23
 * Dest  店铺轮播图
 */

public class CarouselBean implements Parcelable {
    /**
     * goodsId : 874
     * url : http://p35r91t1w.bkt.clouddn.com/upload/ad_img/5cd5d1f9-96a1-4a1d-b47c-db8b08b800b2.png
     */

    private int goodsId;
    private String url;

    public int getGoodsId() {
        return goodsId;
    }


    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.goodsId);
        dest.writeString(this.url);
    }

    public CarouselBean() {
    }

    protected CarouselBean(Parcel in) {
        this.goodsId = in.readInt();
        this.url = in.readString();
    }

    public static final Creator<CarouselBean> CREATOR = new Creator<CarouselBean>() {
        @Override
        public CarouselBean createFromParcel(Parcel source) {
            return new CarouselBean(source);
        }

        @Override
        public CarouselBean[] newArray(int size) {
            return new CarouselBean[size];
        }
    };
}
